package com.jbpm.service;

import org.jbpm.graph.exe.ExecutionContext;
import org.jbpm.taskmgmt.def.AssignmentHandler;
import org.jbpm.taskmgmt.exe.Assignable;

public class AssignedFinanceMgr implements AssignmentHandler{


	public void assign(Assignable assign, ExecutionContext ctx) throws Exception {
		//actorId代表填单人
		String actorId = (String)ctx.getContextInstance().getVariable("actorId");
		/**
		 * 在项目中必须根据系统的业务规则，获取对应的值
		 * */
		assign.setActorId("4");
	}

}
